package ModelLayer;
import java.util.*;

public class SalesOrder {
	private String saleID;
	private Date purchaseDate;
	private boolean deliveryStatus;
	private Date deliveryDate;
	
	public SalesOrder(String saleID, Date deliveryDate) {
		this.saleID = saleID;
		purchaseDate = new Date(); //when a new sale is created it automatically sets the current date & tine
		deliveryStatus = false; 
		this.deliveryDate = deliveryDate; 
	}

	public String getSaleID() {
		return saleID;
	}

	public void setSaleID(String saleID) {
		this.saleID = saleID;
	}

	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public boolean isDeliveryStatus() {
		return deliveryStatus;
	}

	public void setDeliveryStatus(boolean deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}
	
	//No setPurchaseDate method - not needed, set in constructor
	//No setDeliveryDate method - not needed, set in constructor
}
